package org.itboys.store.service;

import javax.annotation.Resource;

import org.itboys.admin.service.SysDictionaryService;
import org.itboys.framework.resource.ResourceHolder;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.itboys.store.entity.Order;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by huml on 2016/4/19.
 * 订单业务
 */
@Service
public class StoreOrderService extends BaseService<Order, Long> {
    private static final long serialVersionUID = 4495340193729890410L;

    protected Logger logger = LoggerFactory.getLogger(getClass());

    @Resource(name="productDS")
    private MongoDataSource orderDS;

    @Autowired
    private StoreProductService storeProductService;
    @Autowired
    private ResourceHolder resourceHolder;
    @Autowired
    private SysDictionaryService sysDictionaryService;

    @Override
    protected MongoDataSource getMongoDataSource() {
        return orderDS;
    }

    @Override
    protected Class<Order> getEntityClass() {
        return Order.class;
    }


}
